package com.vm.osm.business.service;

import com.vm.osm.business.dto.rsp.customer.Customer;
import com.vm.osm.business.dto.rsp.customer.CustomerPage;
import com.vm.osm.business.entity.OsmServerProvider;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by chenzui on 2018/2/24.
 */
public interface IOsmServerProviderService extends IBaseService<OsmServerProvider, String> {
    public CustomerPage queryProvidersPageByCond(Integer pageNum, Integer pageSize, String keyWord);

    public CustomerPage queryByPage(Integer pageNum, Integer pageSize, String companyId, String name, String location);

    public void handleCustomerRelationShip(String id, String enterpriseId, Integer status);

    /**
     * 按条件查询全部
     *
     * @param params 查询条件
     * @return 记录列表
     */
    List<OsmServerProvider> find(Map<String, Object> params);

    Customer queryProvidersById(String id);
}
